<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
   <center>
   <h3>修改列表</h3>
  <form action="<?php echo U('Index/update');?>" method="post">
   <input type="hidden" name="id" value="<?php echo ($data['id']); ?>">
   <table border="1" width="500" cellspacing="0">

   	    <tr>
             <td>用户名</td>
             <td><input type="text" name="username" value="<?php echo ($data['username']); ?>"></td>
        </tr>
        <tr>
        	 <td>年龄</td>
        	 <td><input type="text" name="age" value="<?php echo ($data['age']); ?>"></td>
        </tr>

        <tr>
        	 <td>性别</td>
        	 <td>
        	 	 <input type="radio" name="sex" value="1" <?php echo ($data['sex']==1); ?> ? 'checked' : ''>男
        	 	 <input type="radio" name="sex" value="2" <?php echo ($data['sex']==2); ?> ? 'checked' : ''>女

        	 </td>

        </tr>

         <tr>
         	   <td>班期</td>
         	   <td><input type="text" name="classid" value="<?php echo ($data['classid']); ?>"></td>

         </tr>
        
         <tr>
         	
         	  <td colspan="2"><input type="submit" value="提交"></td>
         </tr>

   </table> 
  </form>
   </center>
</body>
</html>